public class test {
    public static void main(String[] args) {
        // 1
        Goods goods = new Goods();
        goods.setGoods("钢笔");
        goods.setPrice(28.0);
        goods.setGehsu(1);
        goods.setMoney(28.0);
        // 2
        Goods goods1 = new Goods();
        goods1.setGoods("笔记本");
        goods1.setPrice(15.0);
        goods1.setGehsu(3);
        goods1.setMoney(45.0);
        // 3
        Goods goods2 = new Goods();
        goods2.setGoods("MP3");
        goods2.setPrice(128.0);
        goods2.setGehsu(1);
        goods2.setMoney(128.0);

        System.out.printf("%-10s %-8s %-6s %-8s%n", "商品", "单价", "数量", "金额");

        System.out.printf("%-10s %-8.2f %-6d %-8.2f%n", goods.getGoods(), goods.getPrice(), goods.getGehsu(), goods.getMoney());
        System.out.printf("%-10s %-8.2f %-6d %-8.2f%n", goods1.getGoods(), goods1.getPrice(), goods1.getGehsu(), goods1.getMoney());
        System.out.printf("%-10s %-8.2f %-6d %-8.2f%n", goods2.getGoods(), goods2.getPrice(), goods2.getGehsu(), goods2.getMoney());

        System.out.println("会员享受折扣:0.9");
        System.out.println((goods.getMoney()+goods1.getMoney()+goods2.getMoney())*0.9+"￥");
        System.out.println("付款金额：200￥");
        System.out.println(200 -180.9);
        System.out.println("所获积分18");
    }
}